import Vue from 'Vue'
import './computed.scss'
import 'font-awesome/css/font-awesome.css'

const computed = function () {

    new Vue({
        el: '#app-1',
        computed: {
            eventObj() {
                return {input:function(event){
                    event.target.style.borderColor = '#' + Math.random().toString().slice(2, 8)
                }}
            }
        },
        methods: {
            eventHandle(event){
                event.target.style.backgroundColor = '#' + Math.random().toString().slice(2, 8)
            }
        }
    })
}

export { computed }